factors affecting weight in diabetes