British house prices rose slightly in June, but higher borrowing costs continue to affect the property market, says Nationwide.