gold rises on safe-haven buying as global stocks slump