One-dimensional random walk with self-interaction