Children’s memories of pain are affected by adult anxiety, study finds