Alan Hamer has resigned from his role as chief executive of Glamorgan Cricket, the club have confirmed.