West Indies captain Brathwaite signs for Gloucestershire