'Transformers' edge out 'Spider-Verse' to claim first place at box office