Homes are taking longer to sell largely because housing costs are so expensive and there’s a limited supply, Redfin said. It’s the slowest pace in 5 years.