The Bernstein problem for affine maximal hypersurfaces