Red Sox officially announce Castillo signing