Jayson Tatum scored 31 points as the Celtics staved off elimination by beating the Miami Heat 121-108 in Game 5 of the Eastern Conference Finals.