Sheriff Scott Hamilton to retire