The Duke of Edinburgh has left the private King Edward VII’s Hospital in London where he has been recovering after heart surgery.