Wes Streeting has said he would support cutting the welfare budget to fund a rise in defence spending.