Marcus Trescothick has signed a new three-year deal with Somerset, which effectively means he will finish his career at Taunton.