On collapse of the inner pipe of a pipe-in-pipe system under external pressure