Armed police officers are patrolling on board trains nationwide for the first time as security across the UK is heightened in the wake of the Manchester terror attack.