A statistical theory of dislocation dynamics with application to creep in LiF