Regularity of Functions: Genericity and Multifractal Analysis