Price rises for clothing, textiles and leather goods helped "factory gate" annual inflation for manufactured goods in the UK to increase by 5.9% in July.