Stocks have been falling through the final trading days of 2024, as investors have grown nervous about next year's prospects.