South African President Jacob Zuma has condemned anti-foreigner violence as clashes between citizens and non-nationals hit the capital Pretoria this week.