Fathers play a key role in helping their young daughters overcome loneliness, a new study has found.