The future used to look bright for Ocwen Financial and Ditech, two publicly traded nonbanks that specialized in “high touch” residential servicing. But over the past four years, both have struggled mightily with losses, regulatory sanctions and shrinking portfolios.