do dogs understand affection from humans