Massachusetts will phase out use of hotels and motels to shelter homeless families, governor says