Performances and Trade-offs of Low-Bit Precision Neural Networks based on Resistive Memories