Nelson Mandela lies in state as South Africa mourns