US manufacturing activity shrank in December by the most since 2024, capping a rough year for American factories.