If you are a teenager, it's very common to have your cycles be different lengths. The "average" is 28 days from period to period, but a lot of women have shorter menstrual months than that, or longer. Don't worry, it will settle down in your 20s. And it has nothing to do with masturbating or touching each other.
No need to worry it's normal not related with masturbation okay ...