On the algebraic hypersurfaces invariant by weighted projective foliations