Hampshire all-rounder Sean Ervine has confirmed that he has signed a new three-year contract with the club.