CFT partition functions and moduli spaces of canonical curves