What caused Spain's deadly flash floods?

A year's worth of rain hit Valencia, Spain in just one day, leading to catastrophic flash floods that have killed at least 140 people.