Barbados becomes a republic