To change a location configured as a branch to the HQ you will need to re-install all locations in the deployment.
Un-install Collaboration Services from all locations in the deployment.
Install Collaboration Services as described in the product documentation in the location you want to make the new HQ specifying this location as the HQ,
Install Collaboration Services in all the other locations as branches
Recreate your publications and subscriptions.