Nonlinear three-dimensional simulations of resistive wall modes