Stocks hit record highs again on Thursday on a continued wave of investor optimism.