Stocks traded close to record highs after a subdued US inflation report reinforced hopes that the Federal Reserve won’t need to raise interest rates next month.