Charmonia production in 450 GeV/$c$ proton induced reactions