On the inductive bias of infinite-depth ResNets and the bottleneck rank