A man accused of carrying out a mass stabbing on a UK train has been charged with 11 counts of attempted murder.