Matt Hancock has resigned from his position as health secretary after it emerged he had broken social distancing guidelines by kissing a colleague.