Ultraviolet divergences, renormalization and nonlocality of interactions in quantum field theory