Pakistan's former prime minister Imran Khan has been moved from prison to a private hospital.