Dozens have died and at least 1,700 were evacuated after torrential rain caused a flash flood and mudslides.