The evolution of conformist transmission in social learning when the environment fluctuates