A divided South Africa unites to mourn Mandela