Intellectual ability in early adulthood and type 2 diabetes in later life