Halogens as tracers of protosolar nebula material in comet 67P/Churyumov–Gerasimenko