A Lancashire man has pleaded guilty to neglecting his 94-year-old mother who had dementia.