The prospect of an independence vote in Scotland that could rip apart the United Kingdom just months before an EU exit would add a tumultuous twist to Brexit with uncertain consequences for the world’s fifth largest economy.