Diabetes complications are a risk factor for repeat hospitalizations, study shows