Community center's leisure pool to close while 'rotten' beam replaced