Thirty states, as well as Washington, D.C., allow voters to register with a political party. Here’s what the data shows.