Text this: An epidemiological model for analysing pandemic trends of novel coronavirus transmission with optimal control