Federal judge retires as he faces accusations from women