A ferry was being thrust side to side as it struggled through Portsmouth harbour during stormy weather this afternoon.