Emergence of small-scale magnetic flux in the quiet Sun