BPS amplitudes, helicity supertraces and membranes in M-theory