Siemens AG plans to reduce its global headcount by about 6,000 workers, with the majority of cuts planned in its factory automation business that’s suffering from weak demand.