Thousands flee Philippines flooding