Spain's former king to leave the country amid corruption claims