Tens of thousands of people in four cities in central Japan have been ordered to evacuate after weather forecasters warned of major flooding caused by heavy rain.