Prescribed asymptotic behaviour of solutions to semilinear ordinary differential equations