Solutions of KZ differential equations modulo p