Sri Lanka’s hopes of reaching the Cricket World Cup semi-finals were severely dented by a thumping nine-wicket defeat to South Africa in Durham.