A pensioner who attacked young girls, including one as young as three years old, has been handed a large prison sentence.