Digital-Assisted Analog In-Memory Computing with RRAM Devices