Homodyne-like detection for coherent state-discrimination in the presence of phase noise