Mortgage lending rebounds in July