Japanese stocks hit one-month high by election