Abandoned villages in northern Spain snapped up by foreign investors