Lord William Hague, the former Conservative party leader, has been elected as the next chancellor of Oxford University.