UK mortgage market slows in June as uncertainty bites