Some relief as profit beats forecasts, but beleaguered supermarket still faces uphill battle to compete