Borrowing was £17.4bn last month, the second highest October figure since monthly records began in 1993.