Response delay as a strategy for survival in fluctuating environment