A fluid model for the shape of accretionary wedges