Thousands of people are in danger from Japan’s worst rains in 50 years