UK manufacturers invest at slowest pace since 2017, report says