Tau-functions on spaces of holomorphic differentials over Riemann surfaces and determinants of Laplacians in flat metrics with conic singularities