People who sleep for less than six hours per night have a greater chance of developing type 2 diabetes in later life, it has been discovered.