Spending more time at school could keep you sharp into old age, but there are other factors that might explain the effect