Nonlinear description of Yang-Mills cosmology: cosmic inflation and the accompanying Hannay’s angle