Gamma-ray emission of young stellar objects and discovery of superorbital variability at high energies