Food companies operating in the UK have announced they will cap the level of calories in confectionery on the day government advisers will publish a report on the impact of sugar on obesity.