'Ghost schools' paid millions for absent students