ANC retains key seats in recent municipal by-elections