Devers will DH and play first base, Giants manager Bob Melvin said Tuesday