Matthew Hedges, who was jailed for spying in the United Arab Emirates, is pardoned with immediate effect.