Subdominant dense clusters allow for simple learning and high computational performance in neural networks with discrete synapses