A slew of strong corporate profits sent stocks to fresh all-time highs, with the market also rising as President Donald Trump said a deal on the Strait of Hormuz is possible as early as Wednesday.