When visiting someone in a chapel of rest it’s normal to want to hold their hand or touch their hair. Usually this is completely fine unless the funeral director tells you otherwise. If you’re unsure just ask.