Iran president Hassan Rouhani condemned US sanctions while delivering a speech during a ceremony marking Student Day at the University of Tehran in the capital.