UK economy avoids a recession in 2022 by the thinnest of margins