Coupled beam motion in a storage ring with crab cavities