Optimal Delay in Networks with Controlled Mobility