Labour must prioritise a second referendum over a general election, the party's deputy leader is to say.