South Africa will not be drawn into contest between global powers: President