The duke and duchess were making their final appearance in Nottingham on an away day which marked their return to joint public appearances in the UK.