South Africa got their ICC World Cup campaign up and running with an emphatic nine wicket victory over Afghanistan in Cardiff.