Prince William suggested offering men a "free pint" to encourage them to go for health checks during a visit to the Royal Marsden Hospital in London.