Children who spend three hours or more looking at screens are likely to be increasing the risk of developing type 2 diabetes, according to an observational study.