Hamiltonian Mechanics of Feature Learning: Bottleneck Structure in Leaky ResNets