The data scientist behind the Cambridge Analytica scandal did paid consultancy work for Facebook and has close ties to staff