HBO, which created modern pay-per-view and has aired some of the biggest fights in boxing over the past 45 years, will stop showing live fights at the end of 2018.