Model for the origin and properties of the cosmic‐ray rigidity spectrum