The quartile operator and pointwise convergence of Walsh series