The correct option is
C to have been
Option C: In the given sentence, the phrase 'would like' is an expression that is used to express a wish in the present or an action that was missed by the person. Here, the person missed an action 'to be there yesterday'.
If it's followed by a verb, then that verb must be in the infinitive form 'to + base verb'.
Also, the action has recently happened in the past, so the tense would be present perfect 'have been'.
Hence, from the options, the correct verb form is 'to have been'. It's a verb in the infinitive form. Hence option C is correct.
Options A and B: 'Being' and 'having to be' are not infinitive forms of the verb 'to be'. So, options A and B are wrong.
Option D: 'To be' is the base verb form and does not express a past action. Hence option D is not suitable here.