Waves in shallow water due to arbitrary surface disturbances