Having roommates might be more than just a way to split rent. It can also do wonders for the brain as you age.