Official figures show the number of public houses and bars registered with HM Revenue and Customs declined between 2010 and 2024.