Unilever is in talks to sell its food business to McCormick, transforming the owner of Hellmann’s mayonnaise into a maker of beauty and personal care products.