England seamer James Anderson is a doubt for July’s first Test of the summer against South Africa with a groin tear.