A-type stars in the Canada–France Imaging Survey I. The stellar halo of the Milky Way traced to large radius by blue horizontal branch stars