Consumer goods giant to cut losses on failing pharma operation