Friends because of foes: the interplay between space use and sociality in mediating predation risk