Model of gravitational waves from precessing black-hole binaries through merger and ringdown