The prime minister said a new leader will be in place before parliament returns in September