Measurement of $\gamma p \rightarrow K^ + \Lambda$ and $\gamma p \rightarrow K^ + \Sigma^0$ at photon energies up to 2.6 GeV