Fast-mode magnetohydrodynamic waves in coronal holes and the solar wind