Leading anti-apartheid campaigner Nelson Mandela has been freed from prison in South Africa after 27 years.