The shadow chancellor said he would not follow the lead of Jeremy Corbyn, who has promised not to take sides in another public vote.