Gravitational dynamics from collective field theory