Variation in laboratory testing for patients with long-term conditions: a longitudinal cohort study in UK primary care