Pete Buttigieg, the 38-year-old former mayor of South Bend, Indiana who for a brief moment was imagined as the 2020 Democratic presidential nominee, has formally announced his exit from the race, ending a campaign that briefly rivalled sitting senators and a …