Spain has been hit by torrential rain, triggering flash flooding across multiple regions.