Stocks drop at end of record year for markets