Wales and Scotland face uncertain future with Brexit