Melbourne has pipped Sydney to become Australia's fastest-growing city, but risks a "lost decade" after years of underinvestment in public transport.