Philippines president ‘swears to stop swearing’