immune function can be affected by sugar