Former Labour leader Keir Starmer had previously ruled out rejoining the European Union