Men accused of terror attacks in the UK tried to get hold of deadly weapons, say prosecutors