A new study found daydreaming could have big benefits.