Rugby World Cup champions South Africa defeat Wales in Cardiff to complete an unbeaten tour of the United Kingdom.