Hospitality bosses in York and North Yorkshire have slammed proposals from the government to ban smoking in pub beer gardens and other outside locations.