People 'avoid sex after heart attacks'