The Duchess of Cambridge has thanked nurses for their “huge sacrifices” amid the COVID-19 pandemic, as she marked the end of the Nursing Now initiative.