On the height of digital trees and related problems