Heavy rain and fierce winds have lashed Spain since the beginning of the week, with up to a year's worth of rain falling in just hours in some areas.