Messages between the singer and Celeste Rivas Hernandez were shared in court, along with descriptions of child sex abuse material allegedly found on D4vd's phone