A “drab” December has capped a disappointing year for retailers and the second in a row of falling shopper numbers, figures show.