Borrowing rose to £17.4 billion last month marking the second highest October figure since monthly records began.