Record rain in Japan has resulted in four deaths and left thousands stranded at Narita airport.