Amazon founder Jeff Bezos will buy the Washington Post for $250m (€188m) in a surprise deal that ends the Graham family’s 80 years of ownership and hands one of America’s most influential publications to the businessman whose internet company transformed retailing.