China’s purchases of machines to make computer chips contracted in November to their lowest in more than two years, hammered by cratering electronics demand and new US export restrictions that are limiting the ability of Chinese firms to buy the most advanced equipment.