Infinite-dimensional porous media equations and optimal transportation