Measurement-induced entanglement in conformal field theory