Speaking with a foreign accent mitigates the impact of making grammatical errors, depending on the personality type of the listener, a study has found.