James Anderson claimed five of the seven remaining wickets to lead Lancashire to a comprehensive victory over Durham in the LV County Championship.