UV completions of composite Higgs models with partial compositeness