Collective electric and magnetic plasmonic resonances in spherical nanoclusters