Neuromorphic behaviour in nanoparticle films