UK supermarket retailer Tesco moved to a loss in its last fiscal year as a result of one-off charges, but booked its first rise in UK sales for seven years.