Unilever has decided to close two sites in North America as part of a shake-up of its ice cream business on the continent.