Warren Buffett pulled the plug on his investment in a beauty company that has seen it lose market share for the first time.