Melee attacks do the most damage if you hold them for a little over one second (counting one second is pretty close if you have 50+ ping). This also increases chance of crushthrough on maul weapons.
Hold time does not change damage on bows, only accuracy (decreases with time). It does nothing on crossbows and thrown weapons.