This is not very uncommon when a girl first starts having periods. You may want to talk to your mom about this though so she can take you to a Dr. They will check to see if everything is alright and your hormones are at normal levels.
Masturbation has nothing to do with your periods. It won't start or stop them.
Update: I do masturbate occasionally