Dozen of victims and family members tell court about pain of losing loved one, as shackled gunman who killed 51 worshippers sits in dock showing little emotion