The African National Congress has seen its popularity decline, particularly among younger voters, and deep divisions have emerged as the party looks for a new leader.