The evolution of stellar surface activity and possible effects on exoplanets