Parameterization of unresolved obstacles in wave modelling: A source term approach