A Frobenius-type theorem for singular Lipschitz distributions