Mitch Marsh was left stranded when Quinton de Kock and David Miller combined for a stunning run out in South Africa's final ODI against Australia.