The rapid transition from star formation to AGN-dominated rest-frame ultraviolet light at z ≃ 4