Dubai ruler had ex-wife's phone hacked: UK court