The Kepler-11 system: evolution of the stellar high-energy emission and initial planetary atmospheric mass fractions