Early signs of type 2 diabetes can be identified more than 20 years before diagnosis, according to new research.