Bargain-hunting shoppers gave retailers a welcome boost in January following a disappointing festive period, figures show.