Huge floods have hit one of Spain's top holiday islands, with authorities warning tourists to stay indoors as cars are swept out to sea.