Stocks pull back from records, weighed down by tech, energy