Fractal propagators in QED and QCD and implications for the problem of confinement