Hearts may swoon when stocks do, study shows