Brain fog, or limited cognitive function, may be caused by stress, poor sleep, and other factors. Here are some tips to manage mental fatigue.