Sensational India claim consolation victory in third test against South Africa