A US judge has refused to order the pre-trial release of a man charged with planting pipe bombs outside the Republican and Democratic parties' headquarters.