Nonlocal theory of the electromagnetic and weak interactions with W-boson