The French Assembly has voted in favour of introducing a tax on energy drinks.