The number of people living in Switzerland has soared by nearly one-quarter over the last generation.