On the origin of phylogenetic structure in competitive metacommunities