THEORY OF TRANSFER REACTIONS IN PERIPHERAL HEAVY--ION COLLISIONS