Home Stock King Charles acknowledges ‘painful’ history as he opens Commonwealth summit