Unilever has agreed to buy cosmetics firm Carver Korea for 2.27 billion euros ($2.71 billion) from Goldman Sachs, Bain Capital and the company's founder.