High-resolution spectroscopic study of massive blue and red supergiants in Perseus OB1