Twisted C-algebras associated to finitely aligned higher-rank graphs