Thousands of people took to the streets of Poland to protest against a near-total ban on abortion, which came into force on Thursday.