Distributed consensus under local broadcast and local multicast communication models