Former foreign secretary Boris Johnson said Jeremy Corbyn was a threat to the values of the UK during his leadership bid speech.