Widespread flooding and landslides set off by a tropical storm in the Philippines left at least 24 people dead, swept away cars and prompted authorities to scramble for motorboats to rescue trapped villagers.