An encryption scheme $(\mathrm{Gen},\mathrm{Enc},\mathrm{Dec})$ over a message space $M$ is perfectly secret if and only if for every probability distribution over $M$, every message $m\in M$, and every ciphertext $c\in C$, $$\mathrm{Pr}[C=c\mid M=m]=\mathrm{Pr}[C=c].$$
Please can you help me prove this?