Italian food group Barilla has signed a deal to sell its German bakery group Lieken to Agrofert, the Czech Republic's largest food maker.