The Bernstein problem for intrinsic graphs in Heisenberg groups