Optimal investment with vintage capital: equilibrium distributions