Weakly porous sets and Muckenhoupt $A_p$ distance functions