A study has found people were more likely to mistake a mobile phone for a gun when it was associated with a photo of a black person and shown during a heartbeat