South Africa have called up all-rounder Dean Elgar to replace the injured JP Duminy for the remainder of the series in Australia.