Townhouses, which played a key role in the pre-recession suburban housing boom, have been largely left on the sidelines in the recent recovery. Buyers are gravitating to single-family homes or opting for apartment living.