Imran Tahir was too hot for Afghanistan to handle and Quinton de Kock and Hashim Amla found some form as South Africa coasted to a nine-wicket win