Ramirez apologizes for behavior with Red Sox