At least five people have died and 3,500 have been evacuated from their homes after flash floods struck south-eastern Spain.