Is HDL cholesterol protective in patients with type 2 diabetes? A retrospective population-based cohort study