The pandemic is reshaping the real estate market. So Fortune analyzed the data to find the 10 best and worst housing markets to invest in right now.