Officials say floods triggered by torrential rains have killed at least 37 people in the Moroccan coastal city of Safi.