Childhood mental ability and smoking cessation in adulthood: prospective observational study linking the Scottish Mental Survey 1932 and the Midspan studies