The UK economy grew 0.1% in the first quarter of the year despite the unexpected decline seen in March as the cost of living crisis took its toll, official data showed.