The Battle of the Somme’s horrific futility dominates our memories, yet there are aspects of the battle that pointed, however weakly, to how and why the war would finally end