Schools in the Chinese capital Beijing are ordered to keep children indoors amid extremely high levels of air pollution.