Toyota has said it will cut production capacity in Japan by 20% within five years and shifts output to other countries, particularly emerging markets.