Critical dynamics of gene networks is a mechanism behind ageing and Gompertz law