Typhoon Bualoi weakens to a storm after slamming into the eastern Philippines