The Duke of Sussex has told bereaved military children he “understands, perhaps more than most” the weight of losing a parent at a young age.