US stock markets are inching closer to all-time highs as the prospect of further interest rate cuts and the artificial intelligence boom continue to drive investor flows.