The typhoon tore up trees , cut electricity in coastal areas and forced hundreds of residents to flee to higher ground .