Quantum Networks Enhanced by Distributed Quantum Memories