All transport, including trains and planes, in and out of Madrid ground to a halt after the city experienced the heaviest snowfall in four decades.