Shadow chancellor John McDonnell wants Labour to back a second referendum “sooner rather than later”.