Both retailers saw strong trading during the festive period as higher prices boosted sales.