Virial expansion and TBA in O (N) sigma-models