A reduced basis method for multiple electromagnetic scattering in three dimensions