Observation of the anomalous Nernst effect in altermagnetic candidate Mn5Si3