Infinite-dimensional Grassmannian and Weierstrass cycles in moduli spaces of algebraic curves