Thousands of people submitted their tax return with just minutes left to go before the deadline, according to HM Revenue & Customs.