James Anderson joins Surrey weeks after ending year Lancashire stint