Equities stall before closing a difficult year