Moduli spaces of curves and integrable hierarchies