Flash floods in southeastern Spain left at least 51 people dead after torrential rain, as rescuers raced to search for those still missing.