Ex-service personnel suffering from PTSD or other mental illnesses will be prioritised for social housing under new government proposals.