TV presenter Bradley Walsh has revealed he was warned by doctors he risked death if he didn't lose weight.