A majority of Scots backed staying in the EU in last year’s referendum and the ruling Scottish National Party (SNP), which lost a bid for independence in 2014, has said there should be another vote on the issue if its views on Brexit are rejected in upcoming divorce negotiations with Brussels.