Victims in rape and attempted rape cases will be able to access free legal advice through a proposed Government-backed pilot.