Classical and nonclassical correlations in the dynamics of a two-spin system coupled to a spin bath