The outgoing chief medical officer warns ministers will fail on obesity unless they take bold action.