A 39-year-old man has been jailed for 18 years for carrying out violent and sexual offences against four women and a child.