Pointwise convergence of ergodic averages along cubes