South African president condemns xenophobic attacks