Multimode frequency-domain model for the gravitational wave signal from nonprecessing black-hole binaries