Rabada took a six-wicket haul to guide South Africa to victory over the West Indies in their opening Test.