After a fractious and controversial meeting of the heads of Commonwealth nations, the association that emerged from the ashes of empire faces an uncertain future