Ergodic BSDES and optimal ergodic control in Banach spaces