Crossover from individual to collective magnetism in dense nanoparticle systems : local anisotropy versus dipolar interactions