Former captain Rory Hamilton-Brown has been released from his contract by Surrey, the club have confirmed.