Despite its leader's atheism, the Labour party cannot ignore the religious currents reshaping Britain