Mel B has urged people to "embrace" body confidence and not be put off by the gym in their later years.