Schools closed, flights canceled across Philippines amid heavy rains, typhoon