Higher cocoa prices and costs linked to new factories in Russia and China have weighed on half-year profits at Barry Callebaut, the business-to-business chocolate maker.