High-dimensional Bell test for a continuous-variable state in phase space and its robustness to detection inefficiency