Multi-ReRAM synapses for artificial neural network training