Typhoon displaces thousands in Philippines