The selling of crossbows and hunting arrows will be banned under government plans following a series of violent attacks.