Diffusive-ballistic transition in random walks with long-range self-repulsion