The stock market fell on Wednesday, with the recent rally on Wall Street taking a breather as investors assessed the latest batch of retail earnings and minutes from the Federal Reserve’s July policy meeting.