Former Pakistani Prime Minister Imran Khan has been sentenced to 14 years in prison on corruptions charges in a case he claims was politically motivated.