De Kock stars as South Africa beat Australia by six wickets