Authorities warned people to stay inside to protect themselves as heavy rainfall gushed through the streets of Spain’s Mediterranean cities and villages