Cargill has signed an agreement to buy Unliever's tomato products business in Brazil for around BRL600m (US$350.6m).