Scottish economy remains resilient, but Brexit uncertainty continues to erode long-term growth prospects