Japanese stocks hit record quarterly high