Role of priority effects in the early-life assembly of the gut microbiota