Learning dynamics with social comparisons and limited memory