Factory output continued to weaken in many parts of the world during October, according to surveys of purchasing managers, though there were signs of mild improvement in the U.S. Over the past 18 months, factories have been hit by softening demand for their exports and slowing investment spending as businesses opted to wait out a lengthening period of unusually high uncertainty about future trade relations between the world’s leading economies. …