Prince Harry has said he "understands, perhaps more than most" the impact of losing a parent at a young age.