Investigations into claims of sexual harassment in the army are to be removed from the chain of command in order to "tackle unacceptable behaviours in the military", the Ministry of Defence (MoD) has announced.