Star/galaxy separation at faint magnitudes: application to a simulated Dark Energy Survey