A second-half try from skipper Richie McCaw helped New Zealand to a 14-10 win over South Africa in their Rugby Championship clash in Wellington.