Study: Most first-time heart attacks could be avoided