UK retailer Asda has booked an increase in profit last year, despite a "challenging" period for the economy and despite its new chain of small stores incurring losses.