Universal synaptic plasticity mechanism for familiarity and recognition memory