The U.S. stock market carved out a dubious distinction on Wednesday with the Dow Jones Industrial Average finishing at an all-time high, while the Nasdaq Composite remained mired in correction territory after falling in the past few weeks by more than 10% from its record.