Cosmic ray physics with ARGO-YBJ