UK economy grew slightly and avoided recession, revised official figures show