Localization of random walks and vibrational excitations in random fractal structures