Theory of channelling of relativistic particles