As personal data collected from online behaviour has exploded, companies have rushed to adapt their advertising strategies, with mixed results