Fragrance was the best-performing category as Ulta Beauty beat Wall Street forecasts on the top and bottom lines.