At least 28 people have been killed and 50 injured after a train smashed into a barrier at Cairo's main train station, state television and witnesses have said.