Japan's Prime Minister has announced plans to dissolve the parliament and trigger a snap election in less than three weeks.