Record rainfall has caused deadly flooding in Japan, leaving thousands stranded at Narita Airport during the Obon holiday period.