England spinner Monty Panesar is to remain with Essex next season after signing a two-year contract with the county.