Three manufacturers of “ghost guns,” the self-built, largely untraceable firearms used in an increasing number of deadly shootings, have agreed to stop making or selling those guns in California and will pay the state $675,000 in civil penalties, officials announced Wednesday.