The proportion of voters who favor a referendum on the final terms of any Brexit deal has overtaken those who do not for the first time, according to a YouGov poll for The Times.