The interplay between single particle anisotropy and interparticle interactions in ensembles of magnetic nanoparticles