Finite volume mass gap and free energy of the $\mathrm{SU}(N)\times\mathrm{SU}(N)$ chiral sigma model