Food giants Danone and Kellogg have signed up to an agreement with the Swiss government to reduce sugar content in yogurts and breakfast cereals in the country by the end of 2018.