Trinidad and Tobago becomes a republic