A realistic pattern of fermion masses from a five-dimensional SO(10) model