Text this: Emergence of discrete and abstract state representation through reinforcement learning in a continuous input task