Borrowing was higher than expected in August as inflation piles pressure on the government ahead of the Budget.