Control of photoemission delay in resonant two-photon transitions