Borrowing last month was the lowest July figure for three years, following rises in tax and National Insurance receipts.