A storm in Massachusetts has left thousands without power after wind gusts brought down trees and power lines around the state.