An HST/WFPC survey of bright young clusters in M31, IV. Ages and mass estimates