Dan Olley, CEO of Hargreaves Lansdown, is to leave the firm less than two years after taking up the helm.