Association of benign gynaecological diseases and risk of endometrial and ovarian cancers