Government failed to protect doctors during pandemic, BMA inquiry finds