A Multi-state model for the analysis of functional decline and mortality of frail elderly patients