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