The Duchess of Cambridge has spoken about teaching her children the value of showing affection, declaring "hugs are very important".