Los Angeles has banned the possession of laser pointers at public demonstrations.