Proof of a conjecture on the spectral radius of C4-free graphs