Retailers triggered big sales in advance of the Fourth of July and Prime Day events and have lukewarm expectations for their back-to-school businesses.