Bar-formation as driver of gas inflows in isolated disc galaxies