Cosmic ray studies with the Fermi Gamma-ray Space Telescope Large Area Telescope