Barry Callebaut, the leading Swiss cocoa and chocolate company, has agreed to buy AM Foods from Arla Foods of Denmark for an undisclosed sum.