The soda industry has won local battles against taxes intended to counteract obesity, but as sales slump, it is losing the war of public opinion.