James Anderson marked his return to full fitness in sensational style on day one of the first Test between England and South Africa.