Spanish prime minister Pedro Sanchez said dozens of towns had been flooded.