The outages were mostly caused by problems with local power lines, and coastal Massachusetts was particularly hard hit.