Dawid Malan's classy half-century steered England to a four-wicket T20I victory over South Africa in Paarl and clinched an unassailable 2-0 series lead.