US soldier Chelsea Manning has been released from prison after serving seven years for leaking hundreds of thousands of diplomatic cables and military files to Wikileaks.