Mercurial paceman Kagiso Rabada produced the second-best match figures by a South African to propel his side to a consolation 280-run victory over England in the fourth and final test on Tuesday.