Loss-making US meal-kit firm Blue Apron has announced its chief executive and president is to resign to "pursue new opportunities".