A study found that people who were hospitalized with severe COVID-19 saw an earlier decline in cognitive function.