Not a direct correlation, but its pretty easy to see how it can happen, or at least partially.
Eg: Less active = more weight gain = higher likelyhood of GERD and sleep apnea = less sleep = lower attention span and memory.
Boom, lower IQ because of lower fitness.