Tropical storm Trami, which has triggered heavy flooding in Philippines, killed at least 40 people and displaced tens of thousands in the country