Text this: Working memory retention model using event-related potentials based on wavelet algorithm