Nakamaye's theorem on complex manifolds