Ireland's ageing population means there will be a sharp rise in demand for both home support hours and long-term residential care beds up to 2040.