The former Great British Bake off host was diagnosed after having medical tests for a BBC show