Charles rubs shoulders with Rihanna as Barbados becomes a republic