Investors began pulling back from buying homes in the second half of 2022, which is good for homebuyers who can’t compete with cash buyers.