Rescues as torrential rain brings flash flooding to Spain