Private equity house EQT has agreed a $2.1bn take-private deal for Swedish pharmaceutical business Recipharm.