China's financial hub of Shanghai will limit its population to 25 million people by 2035 as part of a quest to manage "big city disease", the cabinet said.