Typhoon leaves at least 27 dead in Philippines