On transition of propagation of relativistic particles from the ballistic to the diffusion regime