Nonbanks made the majority of purchase mortgages in 2021