Learning epidemic trajectories through Kernel Operator Learning: from modelling to optimal control