Decades of secularisation have not done away with the influence of religion on party choice in Western Europe. To understand this, argues Raul Gomez, we need to look at how parties mobilised religion in the past, and how that still lingers among voters today