An unbeaten century from captain Michael Clarke strengthened Australia's grip on the decisive third Test against South Africa in Cape Town.