England beat South Africa by 191 runs in their fourth and final Test match, to take a 3-1 series victory.