Prince William has said that NHS staff need “enforced career breaks” to prevent burnout after he visited a hospital to mark five years since the Covid-19 pandemic.