A holographic model of deconfinement and chiral symmetry restoration