Even if a home is your largest financial asset, it may not pay to keep it following a divorce. Here's why.