Impact of endometriosis on risk of further gynaecological surgery and cancer: a national cohort study