A turnaround in Spain helped push Rioja volumes to a record high last year, new figures have shown.