A family of four has been rescued after being stranded for three nights in the flooded South Australian outback.