Purchase demand for mortgages up slightly last week