Demand for purchase mortgages hits 6-week low