Lena Dunham reveals she had a hysterectomy in endometriosis battle