Yen nears 162 per dollar as Japan warns of intervention