Mathematical model of accumulation of damaged proteins and its impact on ageing