England were unable to rouse themselves for Jos Buttler’s swansong as white-ball captain as they were all out for 179 in 38.2 overs in their Champions Trophy dead rubber against South Africa.