Coherent potential approximation for spatially correlated disorder