Firms are raising billions of dollars for funds to target distressed assets and other real estate with slumping values.