American Ledecky wins third straight Olympic 800m freestyle title