Essex have announced that wicketkeeper Adam Wheater has bought out the remainder of his contract to allow him to join Hampshire.