Hysteroscopy with directed biopsy versus dilatation and curettage for the diagnosis of endometrial hyperplasia and cancer in perimenopausal women