Stocks fell Wednesday, the last trading day in what has been a strong year for Wall Street.