Tech giants like Google and Apple have quietly snapped up AI companies over the last five years, a new report shows.