The military in Venezuela admits it committed “some excesses” during weeks of political unrest that have left 41 people dead.