British retailers have been given a year to take steps to reduce their use of plastic bags or face legislation that will allow the government to impose a charge on each bag they give away.