Rates of adverse clinical events in patients with chronic kidney disease: analysis of electronic health records from the UK clinical practice research datalink linked to hospital data