Japan stocks hit record foreign inflows as Iran peace hopes fade