Poor diabetes control costing NHS £3bn in avoidable treatment