South African police have arrested 17 people and opened murder cases after attacks on foreign nationals in Durban.