Proteas’ Dean Elgar bows out with ‘amazing memories’