Sterling initially rose against the dollar after Boris Johnson dropped out of the leadership contest.