Anharmonic thermodynamic properties and phase boundary across the post-perovskite transition in MgSiO$_3$