Factorisations for partition functions of random Hermitian matrix models