The World Economic Forum has named the biggest risks facing South Africa, with shortages of basic services flagged.