Thousands of protesters in Myanmar have defied a ban on gatherings by the military who ousted the elected government two weeks ago.