Scotland hold on for victory over Wales in Edinburgh