Ulta Beauty posted better-than-expected quarterly results, with sales getting a boost from increasing transactions and higher average spending. The beauty retailer also boosted its full-year outlook.