Patients with long-term health conditions more likely to track health, study suggests