Spania innrømmer å ha fått åtvaringar om Barcelona-terror