ODM suffers double defeat in by-elections