Opener Tom Latham scored an unbeaten half-century to lead New Zealand to a crushing eight-wicket T20 win over South Africa.