James Anderson was told earlier this month that he would not be offered a new contract at Lancashire