England great Sir James Anderson has joined Surrey ahead of the 2027 season in the Rothesay County Championship.