The Duke of Cambridge has spoken to more than 300 NHS staff and volunteers to thank them for their work