Cork City part company with John Caulfield