Schools were closed, roads were blocked and power was knocked as Barcelona was hit with its heaviest snowfall in 25 years.