Simone Biles won a record 21st medal at the world gymnastics championships on Tuesday as the United States retained its women's team all-around title.