Linkage disequilibrium in finite populations