Hurricane-force wind gusts slammed Massachusetts while heavy rain inundated cars and buildings in parts of Connecticut.