Type 2 diabetes cases in Scotland ‘up by 40% in 10 years’