Circadian clock proteins control adaptation to novel environment and memory formation