South Africa will have to tread carefully as it shapes interests in global affairs, avoiding pressure from the US