Masturbation and orgasms does not have anything to do with your cycles or menstruation, So do not think you caused it or feel guilty about it. It is perfectly natural.
Your cycles have a lot to do with how old you are, how healthy you are, what sport you do and how healthy your diet and weight is