Self-repelling diffusions via an infinite dimensional approach