Nestlé and Dreyer's Grand Ice Cream have agreed to sell off some ice cream brands and distribution assets to enable the Swiss food giant's takeover of the US ice cream company to go ahead.