Flooding caused by heavy rains has left more than 1,000 people dead and hundreds of thousands of homes destroyed.