Pressure-induced topological phase transitions and strongly anisotropic magnetoresistance in bulk black phosphorus