Berkshire Hathaway acquired stakes in cosmetics store chain Ulta Beauty and aircraft parts maker Heico during the second quarter of the year, while simultaneously halving its stake in Apple.