A weather warning has been issued for parts of Spain, as the country counts the cost of recent flooding.