Subalgebras of free restricted Lie algebras