An extremely high intake of sweets may shorten people's lives, says a study that recommends people give up sweets if they want a longer life.