Police are hunting for suspects after two shootings overnight in South Africa left nearly 30 people dead, as the country grapples with a spate of violent crime.