Networked relationships in the e-MID interbank market: A trading model with memory