Row about rejoining the EU would be 'long and painful', former PM warns as Labour leader plans ultimate betrayal