The UK government has said it is considering introducing a levy on fastfood companies that would be used to fight obesity and fund sports facilities.