Katie Ledecky added a third gold medal to her Rio total as she anchored the United States to a win in the women's 4x200-meter freestyle relay on Wednesday night.