An optimal error estimate in stochastic homogenization of discrete elliptic equations