British academic Matthew Hedges has been released from prison despite the UAE claiming he was a member of MI6 and was spying on military systems.