A teenage boy has been charged with attempted murder after a 13-year-old girl suffered multiple stab injuries in East Yorkshire.