Retired judge to serve as county's ethics adviser