Nonspecific synaptic plasticity improves the recognition of sparse patterns degraded by local noise