Days of torrential rain caused rivers to overflow last week, swamping cities and forcing tens of thousands of people to flee their homes, while leaving dozens of people dead.