Conservative People’s Party and populist Vox secure parliamentary majority in election that ends eight years of Socialist rule