A fractal theory for the mechanics of elastic materials