Takens–Bogdanov bifurcation of travelling-wave solutions in pipe flow