Hargreaves Lansdown’s chief financial officer Amy Stirling is to leave the business after the imminent takeover of the company goes through.