The Prince of Wales told the Welsh Guards how "enormously proud" he was of those who took part in the Duke of Edinburgh's funeral.