Fatal floods have swept across eastern parts of Spain, claiming the lives of dozens of people.