The party brought to power in South Africa 30 years ago by Nelson Mandela has lost its mandate. Here’s why, and what comes next.