The prime minister says he would not want to leave office without bringing in "substantial change" to the social care system.