Bank of America has signed a 10-year deal to become the new sponsor of the Boston Marathon starting in 2024, replacing insurance company John Hancock.