Cosmic structure formation in a multifractal universe