Buying a multigenerational home may make financial sense for some families. Here's why more people are choosing to live together with their relatives.